<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>JSON对象创建</title>
	</head>
	<body>
		<h1>Json对象创建</h1>
		<script>
			person={
				name:'Jack',
				age:20,
				addr:{
					homeaddr:'12345',
					workadder:'67890',
			    }
			};
			alert(person.addr.homeaddr);
			alert(person['age']);
			students=[
			{
				name:'zhaolaoshi',
				age:43
			},
			{
				name:'zhaixueru',
				age:45
			},
			];
			alert(students[1].age);
			s={
				"sites":
			    [
                   { "name":"菜鸟教程" , "url":"www.runoob.com" }, 
                   { "name":"google" , "url":"www.google.com" }, 
                   { "name":"微博" , "url":"www.weibo.com" }
                ]
			}
		</script>
	</body>
</html>